package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户睡眠数据
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("t_h_user_sleep")
public class THUserSleep extends Model<THUserSleep> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 入睡时间
     */
    @TableField("start_time")
    private String startTime;
    /**
     * 睡醒时间
     */
    @TableField("end_time")
    private String endTime;
    /**
     * 睡眠时长 单位 分钟
     */
//    @TableField("sleep_time")
//    private Integer sleepTime;
    /**
     * 深睡时长 单位 分钟
     */
    @TableField("deep_sleep_time")
    private Integer deepSleepTime;
    /**
     * 删除标志：0正常，1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

//    public Integer getSleepTime() {
//        return sleepTime;
//    }
//
//    public void setSleepTime(Integer sleepTime) {
//        this.sleepTime = sleepTime;
//    }

    public Integer getDeepSleepTime() {
        return deepSleepTime;
    }

    public void setDeepSleepTime(Integer deepSleepTime) {
        this.deepSleepTime = deepSleepTime;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "THUserSleep{" +
        "id=" + id +
        ", userId=" + userId +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", deepSleepTime=" + deepSleepTime +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
